package edu.sctu.alex.projectPratice.subwaySystem2.MetroStation;

import edu.sctu.alex.projectPratice.subwaySystem2.Passenger;
import edu.sctu.alex.projectPratice.subwaySystem2.dataUntil.InfoSet;

/**
 * Created by user03 on 2015/6/7.
 */
public class MonitorMachine {

    public void checkPackage() {
        InfoSet infoSet = new InfoSet();
        Passenger[] passenger;
        passenger = infoSet.setPassenger();

        if(passenger[0].getaPackage().getPackageType().equals("安全")){
            System.out.println("包裹安全，请通过！");

        }else {
            System.out.println("包裹异常，请配合检查！");

        }

    }


    public void checkWater(){
        InfoSet infoSet = new InfoSet();
        Passenger[] passenger;
        passenger = infoSet.setPassenger();

        if(passenger[0].getWater().getWaterType().equals("安全")){
            System.out.println("水安全，请通过");

        }else {

            System.out.println("水出现异常，请配合检查！");

        }
    }
}
